/**
 * axios 实例
 */
import axios from 'axios';

const service = axios.create({
    // baseURL: 'http://192.168.124.6:8001/api'
    baseURL: 'https://seerforwdw.info/api'
});

/**
 * 添加请求拦截器
 */
service.interceptors.request.use(
  (config) => {
    return config;
  },
  (error) => {
    return Promise.reject(error);
  }
);

/**
 * 添加响应拦截器
 */
service.interceptors.response.use(
  (res) => {
    return res;
  },
  (error) => {
    return Promise.reject(error);
  }
);

export default service;
